package model;

import java.io.Serializable;

public class Transition implements Serializable{
	private State initialState;
	private State finalState;
	private Symbol symbol;
	
	public Transition(State initialState, State finalState, Symbol symbol) {
		super();
		this.initialState = initialState;
		this.finalState = finalState;
		this.symbol = symbol;
	}

	@Override
	public String toString() {
		return initialState + "x" + symbol + "-" + finalState;
	}

	public State getInitialState() {
		return initialState;
	}

	public void setInitialState(State initialState) {
		this.initialState = initialState;
	}

	public State getFinalState() {
		return finalState;
	}

	public void setFinalState(State finalState) {
		this.finalState = finalState;
	}

	public Symbol getSymbol() {
		return symbol;
	}

	public void setSymbol(Symbol symbol) {
		this.symbol = symbol;
	}
}
